using System.IO;
using UnityEngine;

public static class FileTools 
{
    public static void SaveVector2Int(BinaryWriter bw , Vector2Int v)
    {
        bw.Write( (int)v.x );
        bw.Write( (int)v.y );
    }
    public static Vector2Int LoadVector2Int(BinaryReader bw)
    {
        var v = new Vector2Int();   
        v.x = bw.ReadInt32();
        v.y = bw.ReadInt32();
        return v;
    }
}
